import 'package:flutter/material.dart';

class ListViewSeparatedPage extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
        appBar: new AppBar(
          title: new Text('ListView测试页面'),
          backgroundColor: Colors.blue,
        ),    //将参数当作页面标题

        body: new ListView.separated(
            itemBuilder: (BuildContext context, int index) {

              return new Text("text ${index+1}");
            },
            separatorBuilder: (BuildContext context, int index) {

              return new Container(
                  height: 1.0,
                  color: Colors.blue[100]
              );
            },
            itemCount: 100),
    );
  }
}